package com.kyzh.core.pager.weal.community.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.gushenge.core.beans.CommunityListBean
import com.kyzh.core.R
import com.kyzh.core.databinding.ItemCommunitylistBinding

class CommunityListAdapter :BaseQuickAdapter<CommunityListBean.Data , BaseDataBindingHolder<ItemCommunitylistBinding>>(
    R.layout.item_communitylist),LoadMoreModule{
    init {
        addChildClickViewIds(R.id.ivGuanzhu)
    }
    override fun convert(
        holder: BaseDataBindingHolder<ItemCommunitylistBinding>,
        item: CommunityListBean.Data
    ) {
       holder.dataBinding?.d = item
    }
}